package org.despair2D.ui.events 
{
	import flash.events.Event;

	
	
	
public class InteractiveEvent extends Event
{
	
	public function InteractiveEvent(type:String, enabled:Boolean, bubbles:Boolean=false, cancelable:Boolean=false) 
	{ 
		super(type, bubbles, cancelable);
		
		m_enabled = enabled;
	} 
	
	
	/* 交互状态变化 */
	public static const INTERACTIVE_CHANGE:String = 'interactiveChange';
	
	
	
	/**
	 * 是否可交互
	 */
	public function get enabled():Boolean
	{
		return m_enabled;
	}
	
	
	
	public override function clone():Event 
	{ 
		return new SelectedEvent(type, bubbles, cancelable);
	} 
	
	public override function toString():String 
	{ 
		return formatToString("InteractiveEvent", "type", "bubbles", "cancelable", "eventPhase"); 
	}
	
	
	
	private var m_enabled:Boolean;
	
	
}
	
}